-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change metrics with micrometer in mantis-server #533
Conversation
...server-worker-client/src/main/java/io/mantisrx/server/worker/client/SseWorkerConnection.java
Outdated
Show resolved
Hide resolved
...server-worker-client/src/main/java/io/mantisrx/server/worker/client/SseWorkerConnection.java
Outdated
Show resolved
Hide resolved
...server-worker-client/src/main/java/io/mantisrx/server/worker/client/SseWorkerConnection.java
Outdated
Show resolved
Hide resolved
...server-worker-client/src/main/java/io/mantisrx/server/worker/client/SseWorkerConnection.java
Outdated
Show resolved
Hide resolved
...server-worker-client/src/main/java/io/mantisrx/server/worker/client/SseWorkerConnection.java
Outdated
Show resolved
Hide resolved
...server-worker-client/src/main/java/io/mantisrx/server/worker/client/SseWorkerConnection.java
Outdated
Show resolved
Hide resolved
@@ -58,25 +57,23 @@ public void call(Throwable throwable) { | |||
// Use single netty thread | |||
NettyUtils.setNettyThreads(); | |||
|
|||
metricGroupId = new MetricGroupId(DROP_OPERATOR_INCOMING_METRIC_GROUP + "_SseWorkerMetricsConnectionFunction_withBuffer"); | |||
metricsSet.add(metricGroupId); | |||
metricGroup = (DROP_OPERATOR_INCOMING_METRIC_GROUP + "_SseWorkerMetricsConnectionFunction_withBuffer"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving a comment here to take a look at it later.
...r/mantis-server-worker/src/main/java/io/mantisrx/server/worker/DataDroppedPayloadSetter.java
Outdated
Show resolved
Hide resolved
@@ -129,6 +132,11 @@ public TaskExecutorStarterBuilder rpcSystem(RpcSystem rpcSystem) { | |||
return this; | |||
} | |||
|
|||
public TaskExecutorStarterBuilder registry(MeterRegistry meterRegistry) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this method called anywhere? I don't think we'll pass MeterRegistry
in TaskExecutorStarter
.
Note to self: Investigate this more!
3bd7e23
to
5fde01a
Compare
5fde01a
to
af739d5
Compare
", onComplete=" + onComplete.value() + ", dropped=" + dropped.value() | ||
for (String metricGroup : metricGroups) { | ||
if (metricGroup != null) { | ||
final Counter onNext = meterRegistry.counter(metricGroup + "_DropOperator_" + ("" + DropOperator.Counters.onNext)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will also be using Search.in(meterRegistry).name(n -> n.startsWith(metricGroup) && n.endsWith(DropOperator.Counters.onNext.toString())).counter()
af739d5
to
ae7211d
Compare
ae7211d
to
848943c
Compare
848943c
to
df8c44f
Compare
df8c44f
to
ba8be43
Compare
Context
Explain context and other details for this pull request.
Checklist
./gradlew build
compiles code correctly./gradlew test
passes all tests